<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>

<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>


  
  <div class="wrapper-pannel">

      <h1><?php echo Yii::app()->name; ?></h1>
  
    	<div class="row">
    		<?php echo $form->textField($model,'username',array('maxlength'=>40,'placeholder'=>'Username')); ?>
    	</div>
    	
    	<div class="row">
    		<?php echo $form->passwordField($model,'password',array('maxlength'=>40,'placeholder'=>'Password')); ?>
    		<?php echo $form->error($model,'error'); ?>
    	</div>
    
    	<div class="row rememberMe">
    		<?php echo $form->checkBox($model,'rememberMe'); ?>
    		<?php echo $form->label($model,'rememberMe'); ?>
    		<?php echo $form->error($model,'rememberMe'); ?>
    	</div>
    
    	<div class="row buttons">
    		<?php echo CHtml::submitButton('Login',Array('class'=>'button-normal')); ?>
    	</div>
  	

  </div>

<?php $this->endWidget(); ?>
</div><!-- form -->
